{assign var="rowclass" value="uneven"}
{foreach from=$list item=row}
	{eval var=$row->status assign="stid"}
	{eval var=$row->groupid assign="grid"}
	{if (($grid neq 'ADMIN' AND $CURRENT_USER->groupid neq 'ADMIN') OR $CURRENT_USER->groupid eq 'ADMIN') AND $CURRENT_USER->userid neq $row->userid}
		<tr class="{$rowclass}" {if $stid neq 'ACTIVE'} style="font-style: italic" {/if} id="userlistrow{$row->userid}">
			<td><span class="link" onclick="openMessage(event,'{$row->userid}','utu')" title="{$lang.sendmp}">{$row->userid}</span>{if $row->lastlogin eq '' and $CURRENT_USER->groupid eq 'ADMIN'} <b>{$lang.unconfaccount}</b>{/if}</td>
			<td>
			{if $stid eq 'ACTIVE'}
				<select name="groupid" id="groupid" onchange="updateRequestUser('{$row->userid}','chgrp',this)">
					{foreach from=$grouplist item=ptrow}
						{eval var=$ptrow assign="grpd"}
						{if $CURRENT_USER->groupid eq 'ADMIN' OR ($CURRENT_USER->groupid neq 'ADMIN' AND $grpd neq 'ADMIN') }
							<option value="{$grpd}" {if $grpd eq $grid} selected {/if}>{$lang.$grpd}</option>
						{/if}
					{/foreach}
				</select>
			{else}
				{$lang.$grid}
			{/if}
			</td>
			<td>
			{if $CURRENT_USER->groupid eq 'ADMIN'}
				<select name="teamid" id="teamid" onchange="updateRequestUser('{$row->userid}','chteam',this)">
					{foreach from=$teamlist item=ptrow}
						<option value="{$ptrow->id}" {if $row->teamid eq $ptrow->id} selected {/if}>{$ptrow->name}</option>
					{/foreach}
				</select>			
			{else}
				{$row->team->name}
			{/if}
			</td>				
			<td>{$lang.$stid}</td>
			<td align="center">
			<input type="checkbox" class="txt" name="userid[]" id="userid[]" value="{$row->userid}" />
			</td> 
		</tr>
		{if $rowclass eq 'even'}
			{assign var="rowclass" value="uneven"}
		{else}
			{assign var="rowclass" value="even"}
		{/if}
	{/if}
{/foreach}
			

